package com.mo.redis;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;

import com.mo.BaseJunit;

public class IpsRegion extends BaseJunit{
	
	
	
	@Autowired
    RedisTemplate redisTemplate;
	
	@Autowired
    StringRedisTemplate stringRedisTemplate;
	
	
	
	
	
	@Test
	public void testRegion(){
		stringRedisTemplate.delete("region");
		//redisTemplate.delete("region");
		//stringRedisTemplate.delete("ips");
		//redisTemplate.delete("ips");
//		regionService.immitRegionToRedis();
	}
	@Test
	public void getRegion(){
		Object object = stringRedisTemplate.opsForHash().get("region","450000" );
		System.out.println(object);
	}
	@Test
	public void deleteRegion(){
		stringRedisTemplate.delete("region");
	}
	
	
	
}
